<template>
  <div class="carousel">
    <template>
      <el-carousel 
        :interval="4000" 
        trigger="click" 
        height="600px">
        <el-carousel-item 
          v-for="item in arr" 
          :key="item">
          <h3>{{ item }}</h3>
        </el-carousel-item>
      </el-carousel>
    </template>
  </div>
</template>
<script>
export default {
  name: 'Home',
  data() {
    return {
      arr: [1, 2, 3]
    }
  }
}
</script>
<style scoped lang='scss'>
.carousel {
  width: 100%;
  height: 600px;
  .el-carousel {
    width: 100%;
    height: 100%;
    .el-carousel__container {
      width: 100%;
      height: 100%;
    }
  }
}
</style>
